package com.itheima.test0906.test02;

public class Outer {

     class Inner{
        int num = 10;
        public void show(){
            System.out.println("inner的show方法");
        }
    }

    public void method(){
        Inner i = new Inner();
        System.out.println(i.num);
        i.show();
    }

    static class Inner1{
        int num = 10;
        public void show(){
            System.out.println("inner1的show方法");
        }
    }

    public void method1(){
        Inner1 i = new Inner1();
        System.out.println(i.num);
        i.show();
    }

    public void method3(){

         class Inner{
             public void show(){
                 System.out.println("局部内部类");
             }
         }
         Inner inner = new Inner();
         inner.show();
    }
}
